<?php
namespace Admin\Controller;
use Think\Controller;
class ProController extends BaseController {
    public function index(){
		// echo __APP__;
        $this->display();
		// $manager = D('manager');
		// dump( $manager->select() );
    }
    public function add_pro()
    {
        if (IS_POST) {
            $model = D('Admin/Pro');
            if ($model->create(I('post.'), 1)) {
                if ($id = $model->add()) {
                    $this->success('添加成功！', U('Pro/add_pro'));
                    exit;
                }
            }
        }
        $this->display();
    }
    public function design(){

        $this->display();

    }
    public function insert(){

        $this->display();

    }
}